#ifndef DOMAIN_H_
#define DOMAIN_H_
#include <string>
#include <time.h>
#include <set>
#include "Site.h"


class Domain
{
public:
	Domain();
	Domain(std::string dom);
	virtual ~Domain();
	std::string getDomain();
	void setDomain(std::string dom);
	time_t getWhenAvailable();
	void setWhenAvailable(time_t time);
//	void addSite(std::string urlSite);  --> Deprecated
//	bool hasSite(Site &site);   --> Depracated
//	bool hasSite(std::string urlSite);
	static std::string getTrueDomain(std::string urlSite);
	void setHasRobots();
	void setFetchRobots();
	bool getHasRobots();
	bool getFetchRobots();	
	std::string _domain;
	time_t _whenAvailable;
	// std::set<std::string> sites;
	bool _hasRobots;
	bool _fetchRobots;
};

#endif /*DOMAIN_H_*/
